package com.share.demo.event;

import lombok.extern.slf4j.Slf4j;
import org.apache.zookeeper.WatchedEvent;
import org.apache.zookeeper.Watcher;

/**
 * author:caifan
 * date:2019/12/16
 */
@Slf4j
public class ZookeeperWatcher implements Watcher {
    @Override
    public void process(WatchedEvent event) {
      log.info("path:{}", event.getPath());
      log.info("state:{}", event.getState());
      log.info("type:{}", event.getType());
    }
}
